//
//  BaseCollectionView.m
//  InSuger
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 Dior_3g. All rights reserved.
//

#import "BaseCollectionView.h"

@implementation BaseCollectionView

- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout backgroundColor:(UIColor *)backgroundColor superView:(UIView *)superView showsHorizontalScrollIndicator:(BOOL)showsHorizontalScrollIndicator showsVerticalScrollIndicator:(BOOL)showsVerticalScrollIndicator delegate:(id)delegate
{
    self = [super initWithFrame:frame collectionViewLayout:layout];
    if (self) {
        self.backgroundColor = backgroundColor;
        [superView addSubview:self];
        self.showsHorizontalScrollIndicator = showsHorizontalScrollIndicator;
        self.showsVerticalScrollIndicator = showsVerticalScrollIndicator;
        self.delegate = delegate;
        self.dataSource = delegate;
    }
    return self;
}

@end
